package miage.rest.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;

/**
 *
 * @author Lou
 */
@XStreamAlias("statuts")
public class Statuts {

    @XStreamImplicit
    private List<Statut> statuts;

    public Statuts(List<Statut> statuts) {
        this.statuts = statuts;
    }

    public List<Statut> getStatuts() {
        return statuts;
    }

    public void setStatuts(List<Statut> statuts) {
        this.statuts = statuts;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Statuts other = (Statuts) obj;
        if (this.statuts != other.statuts && (this.statuts == null || !this.statuts.equals(other.statuts))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.statuts != null ? this.statuts.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
